package top.wyix.module.system.convert.social;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;
import top.wyix.module.system.api.social.dto.SocialUserBindReqDTO;
import top.wyix.module.system.controller.admin.social.vo.user.SocialUserBindReqVO;

/**
 * @author wangdx
 */
@Mapper
public interface SocialUserConvert {
    SocialUserConvert INSTANCE = Mappers.getMapper(SocialUserConvert.class);

    @Mapping(source = "reqVO.type", target = "socialType")
    SocialUserBindReqDTO convert(Long userId, Integer userType, SocialUserBindReqVO reqVO);
}
